<?php

/**
 * Artefactos form base class.
 *
 * @package    hegeprosoft
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseArtefactosForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'art_IdArtefacto'          => new sfWidgetFormInputHidden(),
      'art_nombreArtefacto'      => new sfWidgetFormInput(),
      'art_metodologia'          => new sfWidgetFormInput(),
      'art_actividad'            => new sfWidgetFormPropelChoice(array('model' => 'Actividad', 'add_empty' => false)),
      'art_descripcionActividad' => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'art_IdArtefacto'          => new sfValidatorPropelChoice(array('model' => 'Artefactos', 'column' => 'art_IdArtefacto', 'required' => false)),
      'art_nombreArtefacto'      => new sfValidatorString(array('max_length' => 20)),
      'art_metodologia'          => new sfValidatorString(array('max_length' => 20, 'required' => false)),
      'art_actividad'            => new sfValidatorPropelChoice(array('model' => 'Actividad', 'column' => 'act_IdActividad')),
      'art_descripcionActividad' => new sfValidatorString(array('max_length' => 500, 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('artefactos[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Artefactos';
  }


}
